package com.goodwill.hdr.vo;

/**
 * 与具体ORM实现无关的属性过滤条件封装类.
 * <p>
 * PropertyFilter主要记录页面中简单的搜索过滤条件,比Hibernate的Criterion要简单.
 *
 * @author malongbiao
 */
public class PropertyFilter {

    private String propertyName;
    private String propertyType;
    private String propertyValue;
    private String matchType;
    public static String NAME_CONNECT_STR_OR = "_@OR@_";

    //private String enumType = null;

    public PropertyFilter() {
    }

    /**
     * @param propertyName       属性过滤器构造函数，非枚举类型构造
     * @param propertyName       属性名称
     * @param propertyTypeCode 属性数据类型，包括：字符串、数字、布尔等
     * @param matchTypeCode    匹配方式：等于、大于等
     * @param value            属性值
     */
    public PropertyFilter(final String propertyName, final String propertyTypeCode, final String matchTypeCode,
                          final String value) {
        this.propertyName = propertyName;
        this.matchType = matchTypeCode;
        this.propertyType = propertyTypeCode;
        this.propertyValue = value;
    }


    public String getPropertyName() {
        return propertyName;
    }

    public String getPropertyType() {
        return propertyType;
    }

    public void setPropertyType(String propertyType) {
        this.propertyType = propertyType;
    }

    public String getPropertyValue() {
        return propertyValue;
    }

    public void setPropertyValue(String propertyValue) {
        this.propertyValue = propertyValue;
    }

    public String getMatchType() {
        return matchType;
    }

    public void setMatchType(String matchType) {
        this.matchType = matchType;
    }

    /**
     * @param propertyName the propertyName to set
     */
    public void setPropertyName(String propertyName) {
        this.propertyName = propertyName;
    }



}
